﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuoteResultPrintPreview.aspx.cs"
    Inherits="carinsurance_QuoteResultPrintPreview" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Liberty Insurance Quotes</title>
    <link rel="stylesheet" href="../includes/provider1.css" title="Contemporary" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="provider_content">
        <br />
        <img src="../images/header/libertyheader.JPG" width="920px" height="120px" />
        <br />
        <br />
        <div class="provider_inner">
            Name :
            <asp:Label runat="server" ID="lblCustomerName" Font-Bold="true" />
            &nbsp;&nbsp;
            Contact :
            <asp:Label runat="server" ID="lblCustomerContactNo" Font-Bold="true" />
            &nbsp;,&nbsp;
            <asp:Label runat="server" ID="lblCustomerEmail" Font-Bold="true" />
            <div class="right_action">
                <asp:Label runat="server" ID="lblDateTime" />
            </div>
            <br />
            <fieldset>
                <dl>
                    <dt class="top_action">
                        <label>
                        </label>
                    </dt>
                    <dd>
                        <table cellpadding="2" cellspacing="2" width="980px">
                            <tr class="progridheader">
                                <td colspan="6">
                                    <b>Customer Details</b>
                                </td>
                                <td colspan="3">
                                    <b>Car Details</b>
                                </td>
                                <td colspan="6">
                                    <b>Policy Details</b>
                                </td>
                            </tr>
                            <tr class="progrideven">
                                <td>
                                    Gender
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblGender" />
                                </td>
                                <td>
                                    Occupation
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblOccupation" Width="150px" />
                                </td>
                                <!--Car Detaisl-->
                                <td>
                                    Reg Year
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblRegYear" />
                                </td>
                                <!--Policy Details-->
                                <td>
                                    Applicable NCD
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblNCD" />
                                </td>
                                <td>
                                    OFD
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblOFD" />
                                </td>
                            </tr>
                            <tr class="progridodd">
                                <td>
                                    Marital Status
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblMaritalStatus" />
                                </td>
                                <td>
                                    Job Nature
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblJobNature" />
                                </td>
                                <!--Car Detaisl-->
                                <td>
                                    Offpeak
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblOffpeak" />
                                </td>
                                <!--Policy Details-->
                                <td>
                                    Current Insurer
                                </td>
                                <td>
                                    :
                                </td>
                                <td colspan="6">
                                    <asp:Label Font-Bold="true" runat="server" ID="lblCurrentInsurer" />
                                </td>
                            </tr>
                            <tr class="progrideven">
                                <td>
                                    DOB
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblDOB" />
                                </td>
                                <td>
                                    Driving In SG
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblDriveInSG" />
                                </td>
                                <!--Car Detaisl-->
                                <td>
                                    Model
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblCarMakeModel" Width="200px"/>
                                </td>
                                <!--Policy Details-->
                                <td>
                                    Additional Drivers
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblDriverCount" />
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr class="progridodd">
                                <td>
                                    Vehicle No
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblVehicleNo" />
                                </td>
                                <td>
                                    New Comm. Date
                                </td>
                                <td>
                                    :
                                </td>
                                <td>
                                    <asp:Label Font-Bold="true" runat="server" ID="lblNewCommDate" />
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                    Claim
                                </td>
                                <td>
                                    :
                                </td>
                                <td colspan="5">
                                    <asp:Label Font-Bold="true" runat="server" ID="lblClaimInfo" />
                                </td>
                            </tr>
                        </table>
                    </dd>
                </dl>
            </fieldset>
            <asp:GridView ID="grvCarInsuranceCheapestQuote" runat="server" AllowPaging="True"
                AutoGenerateColumns="False" CellPadding="2" EmptyDataText="There are no data records to display."
                CssClass="progridstyle" GridLines="None" DataSourceID="sqlDsCarInsuranceCheapestQuote"
                DataKeyNames="CITempResultId">
                <Columns>
                    <asp:BoundField DataField="CITempResultId" Visible="false" HeaderText="CITempResultId"
                        SortExpression="CITempResultId" InsertVisible="False" ReadOnly="True" />
                    <asp:BoundField DataField="RefCEUserId" Visible="false" HeaderText="RefCEUserId"
                        SortExpression="RefCEUserId" />
                    <asp:BoundField DataField="CECarId" Visible="false" HeaderText="CECarId" SortExpression="CECarId" />
                    <asp:BoundField DataField="ProviderCompanyId" Visible="false" HeaderText="ProviderCompanyId"
                        SortExpression="ProviderCompanyId" />
                    <asp:BoundField DataField="CompanyName" HeaderText="Company" SortExpression="CompanyName"
                        Visible="false" />
                    <asp:BoundField DataField="CXCoverTypeId" Visible="false" HeaderText="CXCoverTypeId"
                        SortExpression="CXCoverTypeId" />
                    <asp:BoundField DataField="ProviderCoverTypeDesc" HeaderStyle-Width="110" HeaderText="Cover Type"
                        SortExpression="Cover Type">
                        <HeaderStyle Width="110px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="AnnualPremium" HeaderStyle-Width="90" DataFormatString="{0:c}"
                        HeaderText="Premium" SortExpression="AnnualPremium" ItemStyle-Font-Bold="true"
                        ItemStyle-Font-Size="Large">
                        <HeaderStyle Width="90px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="Excess" HeaderStyle-Width="60" DataFormatString="${0:#,0}"
                        HeaderText="Excess" SortExpression="Excess">
                        <HeaderStyle Width="60px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="PlanName" HeaderStyle-Width="90" HeaderText="Plan Name"
                        SortExpression="PlanName">
                        <HeaderStyle Width="90px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="PolicyHolder" HeaderStyle-Width="90" DataFormatString="${0:#,0}"
                        HtmlEncode="false" HeaderText="Personal<br/>Accident<br/><span>(Insured)</span>"
                        SortExpression="PolicyHolder">
                        <HeaderStyle Width="90px"></HeaderStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="PassengerEach" HtmlEncode="false" DataFormatString="${0:#,0}"
                        HeaderText="Personal<br/>Accident<br/><span>(Each Passenger)</span>" SortExpression="PassengerEach" />
                    <asp:BoundField DataField="MedicalExpense" HtmlEncode="false" DataFormatString="${0:#,0}"
                        HeaderText="Medical<br/>Expense" SortExpression="MedicalExpense" />
                    <asp:BoundField DataField="CashAllowance" Visible="false" HeaderText="CashAllowance"
                        SortExpression="CashAllowance" />
                    <asp:BoundField DataField="PersonnalEffectsLoss" DataFormatString="${0:#,0}" HtmlEncode="false"
                        HeaderText="Loss of <br/>Personal Effects" SortExpression="PersonnalEffectsLoss" />
                    <asp:BoundField DataField="IsNCDInclude" HeaderText="NCD Include" SortExpression="IsNCDInclude" />
                    <asp:TemplateField HeaderText="Loss of Use<br/><span class='grid_font'>(Benefit)</span>"
                        SortExpression="CarReplacement">
                        <ItemTemplate>
                            Courtesy Car
                            <br />
                            max
                            <%# DataBinder.Eval(Container.DataItem, "CarReplacement")%>
                            day(s)
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle />
                <PagerStyle />
                <SelectedRowStyle CssClass="progridover" />
                <HeaderStyle CssClass="progridheader" />
                <EditRowStyle />
                <AlternatingRowStyle CssClass="progridodd" />
                <RowStyle CssClass="progrideven" />
            </asp:GridView>
            <asp:SqlDataSource ID="sqlDsCarInsuranceCheapestQuote" runat="server" ConnectionString="<%$ ConnectionStrings:CX_CRMDBConnectionString %>"
                SelectCommand="sprocCarInsuranceResultSelectChepestQuote" SelectCommandType="StoredProcedure">
                <SelectParameters>
                    <asp:QueryStringParameter Name="RefCEUserId" QueryStringField="custid" Type="Int64" />
                    <asp:QueryStringParameter Name="CECarId" QueryStringField="carid" Type="Int64" />
                    <asp:Parameter DefaultValue="0" Name="ServerPath" Type="String" />
                    <asp:Parameter DefaultValue="0" Name="AgentId" Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            
            <br />
            <h2>Contact: (Ms) Kamal @ 6591 5334</h2>
        </div>
    </div>
    </form>
</body>
</html>
